package top.zackyoung.bbs.entity;

/**
 * @author: ZackYoung
 * @time: 2020/11/19
 */
public class ResultMsg {
    public static final Integer SUCCESS = 200;
    public static final Integer FAILD = 500;
    private Integer code;
    private String message = "";
    private Object data ;


    public ResultMsg() {
    }

    public ResultMsg(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }

    public ResultMsg(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
